var searchSelectConfig = [
    'receptionist', //接待员工
    'consultant' //咨询顾问
];
$('#field-select').change(function () {
    let fieldValue = $(this).val();

    if( searchSelectConfig.indexOf(fieldValue) != -1 ) {
        $('#searchInput').hide().prop('disabled',true);
        let tpl = $('#searchSelecttpl #'+fieldValue).html();
        $('#searchSelect').html(tpl);
        $('#searchSelect').show().prop('disabled',false);
    } else {
        $('#searchInput').show().prop('disabled',false);
        $('#searchSelect').hide().prop('disabled',true);
    }
});

$(document).ready(function () {
    $('#data_5 .input-daterange').datepicker({
        keyboardNavigation: false,
        forceParse: false,
        autoclose: true
    });
});

